<?php 
    class Shixuns extends CI_Model{

        function __construct(){
            parent::__construct();
        }

        function get_sx_packages($id){
            $sql = "SELECT * FROM {$this->db->dbprefix}o2o_school_sx_packages WHERE sx_id IN($id) AND school_id = '{$this->school_id}'";
            $result = $this->db->query($sql)->result_array();
            return $result;
        }
    }